const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property
    num: number = 0

    // onLoad () {}

    start() {

    }
    updateNum(num: number) {
        this.num += num;
        this.node.getComponent(cc.Label).string = this.num + '';
    }
    // update(dt) {
    // }
}
